package com.hohode.an;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AnnotationTest {
    private static final Logger logger = LoggerFactory.getLogger(Thread.currentThread().getStackTrace()[1].getClassName());
    public static void main(String[] args) {
        //https://juejin.cn/post/7035116172315983903
        Product p = Product.builder().id(1).name("phone").category("apple").count(2).build();
        logger.debug(p.getName());
        logger.info(p.toString());
    }
}
